import {
  user
} from '@/api/api.js'
export default {

  namespaced: true,
  state: {
    userInfo: {}
  },
  getters: {

  },
  mutations: {
    info(state, obj) {
      state.userInfo = obj
    }
  },
  actions: {
    async AsyncUserinfo(context) {
      let n = await user()
      context.commit('info', n.data)
      return n.data
    }
  }
}
